package com.eastfair.pay.dto;

import com.eastfair.pay.enumeration.TransactionOrderOrderTypeEnum;
import com.eastfair.pay.enums.RefundStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Du Xiaobo
 * @date 2023/5/12 14:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "RefundDTO", description = "在线退款")
public class RefundDTO implements Serializable {
    private static final long serialVersionUID = 4720961300812614650L;
    @ApiModelProperty(value = "业务订单号")
    private String orderNum;
    @ApiModelProperty(value = "订单类型")
    private TransactionOrderOrderTypeEnum orderType;
    @ApiModelProperty(value = "退款状态")
    private RefundStatusEnum RefundStatus;
    @ApiModelProperty(value = "银联交易流水号")
    private String transactionSerialNum;
    @ApiModelProperty(value = "退款金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "退款时间")
    private LocalDateTime refundTime;
}
